import { getDataQueryList as getDataQueryListApi } from '@/api';
import { TIME_FORMAT } from '@/constants';

export const getDataQueryList = ({ Time, ...data }) => {
  let beginTime, endTime;
  if (Time) {
    beginTime = Time[0].format(TIME_FORMAT);
    endTime = Time[1].format(TIME_FORMAT);
  }
  return getDataQueryListApi({ beginTime, endTime, ...data });
};
